const model = {
  key: "dingtalk",
  name: "钉钉API",
  group: "dingtalk",

  template: [
    {
      key: "base",
      name: "基础",
      input: {},
      output: {},
      url: "/api/libs/dingtalk/base.js",
    },
  ],

  libs: [
    {
      key: "dingtalk",
      name: "dingTalkApi",
      href: "https://github.com/bWhirring/dd-sdk",
    },
  ],
  config: {
    corpid: {
      key: "corpid",
      value: "",
      description: "企业id",
      remark: "",
      required: true,
    },
    appkey: {
      key: "appkey",
      value: "",
      description: "应用 AppKey",
      remark: "",
      required: true,
    },
    appsecret: {
      key: "appsecret",
      value: "",
      description: "应用 AppSecret",
      remark: "",
      required: true,
    },
    aesKey: {
      key: "aesKey",
      value: "",
      description: "加密的AES KEY",
      remark: "",
      required: true,
    },
    token: {
      key: "token",
      value: "",
      description: "消息token",
      remark: "",
      required: true,
    },
  },
};

module.exports = model;
